<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/head.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><html:text name="sys.name" /></title>
</head>
<body> 
<table class="datatable">
	<thead>
		<tr>
			<td align="left" width="80"><input type="checkbox" ><html:text name="entity.choose"/></td>
			<td width="100"><html:text name="user.userName"/></td>
			<td width="100"><html:text name="user.nickName"/></td>
			<td width="150"><html:text name="user.email"/></td>
			<td width="150"><html:text name="user.regTime" /></td>
			<td width="150"><html:text name="user.loginTime"/></td>
			<td width="50"><html:text name="button.modify"/></td>
		</tr>
	</thead>
	<html:iterator id="users" value="users" status="index">
	<tbody>
		<tr <html:if test="#index.odd">class="row_odd"</html:if><html:else>class="row_even"</html:else>>
			<td align="left"><input type="checkbox" id="select" value="<html:property value="id"/>"></input></td>
			<td align="left"><html:property value="userName"/></td>
			<td align="left"><html:property value="nickName"/></td>
			<td align="left"><html:property value="email"/></td>
			<td align="left"><html:text name="global.format.date"><html:param value="regTime"/></html:text></td>
			<td align="left"><html:text name="global.format.date"><html:param value="loginTime"/></html:text></td>
			<td><img title="<html:text name="button.modify"/>" src="<%=WEBPATH%>/images/monmodify.gif" onclick="javascript:modifyData('<html:property value="id"/>');" style="border:0px;"></td>
		</tr>
	</tbody>
	</html:iterator>
	<tfoot>
		<tr>
			<td colspan="7">list </td> 
		</tr>
	</tfoot>
	<script type="text/javascript" >
		function modifyData(id){
			window.location="<%=WEBPATH%>/system/user/edit.crm?id="+id;
		}
		jQuery(document).ready(
		function(){
			jQuery(".row_odd ").mouseover(function(){ jQuery(this).addClass("row_active");}).mouseout(function(){ jQuery(this).removeClass("row_active");});
			jQuery(".row_even").mouseover(function(){ jQuery(this).addClass("row_active");}).mouseout(function(){ jQuery(this).removeClass("row_active");});
		});
	</script>
</table> 
</body>
</html>

